wayland: Improve guessing of popup placement for detached popup menus
authorJonas Ådahl <jadahl@gmail.com>
Fri, 5 Jun 2015 05:29:22 +0000 (13:29 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Wed, 10 Jun 2015 03:28:32 +0000 (11:28 +0800)
commit85635457bc2204783a6a7b27435774aa5a93df35
tree39d639f4417ec72a56579fcb3a8b75d4028d7cc7
parent9e464252c02e65425179d6c583c76d5685880ba4
wayland: Improve guessing of popup placement for detached popup menus

If a menu was not attached to any widget, we try to calculate its
position given where the grabbed pointer is and what window has its
focus. Previously we failed to do so if a "transfer window" was used
for the grab, and this patch adds a code path that, if the menu window
itself didn't have the grab, look for the transfer window and get the
grab device from there.

https://bugzilla.gnome.org/show_bug.cgi?id=748951
gdk/wayland/gdkwindow-wayland.c